<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>测试</title>



<!-- 引入 Bootstrap -->
   <link   href="../../static/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"></link>
     <!--springboot默认路径-->
   <link href="bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"></link>
<!--自己的样式-->
    <link href="location.css" rel="stylesheet"></link>
    <link href="../../static/location.css" rel="stylesheet"></link>
   <!-- HTML5 Shiv 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
   <!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
   <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
   <![endif]-->
   <!-- jQuery (Bootstrap 的 JavaScript 插件需要引入 jQuery) -->
    <script src="https://code.jquery.com/jquery.js"></script>
    <!-- 包括所有已编译的插件 -->
    <script src="../../static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
    <!--springboot默认路径-->
    <script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>


</head>
<body>

  <div th:fragment="silder"  class="silder">

          <div class="panel-group" id="accordion" style="width:100%">
                  <!-- <div class="panel panel-default" >
                    <div class="panel-heading">
                      <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion"
                           href="#collapseOne">
                          用户与权限
                        </a>
                      </h4>
                    </div>
                    <div id="collapseOne" class="panel-collapse collapse in">
                      <div class="well well-sm" style="margin:0px"><a href="/user/getusers">用户管理</a></div>
                      <div class="well well-sm" style="margin:0px"><a href="/role/getroles">角色管理</a></div>
                      <div class="well well-sm" style="margin:0px"><a href="/fun/getfuns">系统功能管理</a></div>
                    </div>
                  </div> -->




<span th:each="myfun : ${session.functions}">
                  <div class="panel panel-default" th:if="${myfun.pid==0}">
                    <div class="panel-heading" >
                      <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion"
                         th:attr="href='#'+${myfun.id}"   href="#collapseOne">
                        <span th:text="${myfun.funname}">功能名称：</span>
                        </a>
                      </h4>
                    </div>
                    <div th:attr="id=${myfun.id}" id="collapseOne" class="panel-collapse collapse in" >
                      <span  th:each="sonfun : ${session.functions}">
                        <div th:if="${sonfun.pid==myfun.id}" class="well well-sm" style="margin:0px"><a href="/user/getusers" th:href="@{${sonfun.url}}"><span th:text="${sonfun.funname}">功能名称：</span></a></div>
                      </span>


                    </div>
                  </div>
</span>





      </div>
    </div>

</body>
</html>
